<link href="../addons/jy_commission/custom/templates/mobile/style.css?v=201905251730" rel="stylesheet">
<div class="fui-page fui-page-current page-commission-down">
    <div class="fui-content">
	<div class="jy-content">
        <div class="fui-cell-group sysbgcolor" style='margin-top:0px;color: #fff;'>
            <div class='fui-cell'>
				<div class="fui-cell-label" ng-click="goback();">
					<i class="icon icon-back bold" style="color:#fff"></i>
				</div>
                <div ng-if="pagedata.params.isxuni!=1" class='fui-cell-info' style='width:auto;color: #fff;'>{{pagedata.setting.commission_total}}：+{{pagedata.commission_money}}元</div>
				<div ng-if="pagedata.params.isxuni==1" class='fui-cell-info' style='width:auto;color: #fff;'>累计{{pagedata.xuniname}}：+{{pagedata.commission_money}}个</div>
				<div ng-if="pagedata.jiesuannum>0" ng-click="post({},'/order/xunibalance/')" class='fui-cell-remark' style='width:auto;color: #fff;'>结算{{pagedata.jiesuannum}}个</div>
			</div>
        </div>
        <div ng-if="pagedata.params.isarea!=1 && pagedata.params.isxuni!=1  && pagedata.params.type!=27  && pagedata.params.type!=30 && pagedata.params.type!=31" class="fui-tab fui-tab-danger" id="tab">
            <a ng-repeat="item in pagedata.levels" ng-click="pagedata.list=[];pagedata.loaded=false;pagedata.params.page=1;pagedata.params.level=item.key;pagedata.get_list()" ng-class="{'active':pagedata.params.level==item.key}" href="javascript:;">{{item.title}}({{item.num}})</a>
			<a ng-if="pagedata.pluginset.jicha_open==1" ng-click="pagedata.list=[];pagedata.loaded=false;pagedata.params.page=1;pagedata.params.level=20;pagedata.get_list()" ng-class="{'active':pagedata.params.level==20}" href="javascript:;">极差({{pagedata.jichanum}})</a>
		</div>
        <div ng-repeat="item in pagedata.list track by item.id" class="fui-list-group" id="container" >
			<div class="fui-list" style="height: auto">
				<div class="fui-list-media">
					<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar) ||'../core/resource/images/nopic.jpg'}}" class="round" style="width:2rem;height:2rem">
					<i ng-if="!item.member.avatar" class="icon icon-my2"></i>
				</div>
				<div class="fui-list-inner">
					<div class="row">
						  <div class="row-text" >
						 {{item.member.nickname}} <span ng-if="item.is_sale==1" class="label label-success">直销</span>
						  </div>
					</div>
					<div ng-if="item.type==27 || item.type==30 || item.type==31" class="subtitle bold" style="font-size: 0.7rem;">
						{{item.ordersn}}{{item.type==30?'年份':'月份'}}
					</div>
					<div ng-if="item.type==27 || item.type==30 || item.type==31" class="subtitle bold" style="font-size: 0.7rem;">
						业绩:￥{{item.order_price}}
					</div>
					<div ng-if="item.type!=27 && item.type!=30 && item.type!=31" class="subtitle" style="font-size: .55rem;">
						单号：{{item.ordersn}}
					</div>
					<div class="syscolor" style="font-size: .55rem;">{{item.statustitle}}</div>
				</div>
				<div class="row-remark" style="min-width:2rem">
					<p>奖励:￥{{item.money}}</p>
					<p ng-if="item.type==30 || item.type==31" style="font-size:0.5rem">下级扣除:{{item.remark.outfee||0}}</p>
					<div ng-if="pagedata.pluginset.fee_notitle!=1" class="label label-success sysbgcolor" style="font-size:0.4rem">{{item.typetitle}}</div>
				</div>
			</div>
				<div ng-repeat="m in item.merchs" style="background:none">
						<div class="fui-list external" style="padding: 0 0.5rem" data-nocache="true" ng-click="access_json('jy_commission/orderdetail//id='+item.id)">
							<div class="fui-list-inner">
								<div class="subtitle" ng-if="m.id"><i class="icon jinyunicon icon-dianpu"></i>  {{m.merchname || '多商户'}}</div>
								<div class="subtitle" ng-if="!m.id"><i class="icon jinyunicon icon-dianpu"></i>  {{pagedata.shopset.store_title || '平台自营'}}</div>
							</div>
							<div class="angle" style="color:#999;font-size:0.6rem">详情</div>
						</div> 
						<div href="javascript:;" ng-repeat="g in m.goods" class="external" data-nocache="true" ng-click="access_json('jy_commission/orderdetail//id='+item.id)">
							<div class="fui-list">
								<div class="fui-list-media" style="">
									<img class="" ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="text goodstitle towline">{{g.title}}</div>
									<div class="text" style="color:#f60;font-size:0.60rem">{{g.selespename || '无规格'}} x {{g.total || 1}} /{{g.unit ||'件'}}<span ng-if="g.weight!='0.00'"> ({{g.weight}}g)</span></div>
					
								</div>
								<div class="fui-list-angle" style="width:auto">
									<div>￥<span class="marketprice syscolorred">{{g.price}}</span></div>
								</div>
							</div>
						</div>
					</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i>
			<br/>
			<p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>

    </div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.get_list=function(){
	scope.tool.get_list('jy_commission/orderfee/list/',true);
}
scope.tool.get_list('jy_commission/orderfee/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_commission/orderfee/list/');
}
</script>

